package com.zbxx.practice.designpattern.watch.jdk;

import lombok.Getter;


import java.util.Observable;

/**
 * @author 万仁杰
 * @date 2019/06/04
 */
@Getter
public class JdkSubject extends Observable {

    private String content;


    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
        this.setChanged();
        this.notifyObservers(content);
    }
}
